package com.cloud.hotline.api.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.cloud.hotline.api.entity.ToHotlineRecord;
import com.cloud.hotline.common.driver.SimpleInlangDriver;
import com.cloud.hotline.common.utils.BaseMapperHelper;

public interface ToHotlineRecordMapper extends BaseMapperHelper<ToHotlineRecord> {

	@Select("select record_id, yessw_num from to_hotline_record where yessw_num in (#{yesswNums})")
	@Lang(SimpleInlangDriver.class)
	@Results({ @Result(property = "recordId", column = "record_id", javaType = Integer.class),
			@Result(property = "yesswNum", column = "yessw_num", javaType = String.class) })
	List<ToHotlineRecord> checkRecordExists(@Param("yesswNums") List<String> yesswNums);
}